﻿using AstoriaPlus;
using System.Diagnostics;
using System.ComponentModel.Composition;

namespace WebApp
{
	[PartCreationPolicy(CreationPolicy.Shared)]
	[Export(typeof(IPipelineBehavior))]
	public class TraceBehavior : PipelineBehavior
	{
		public override void ProcessedChangeset(IPipelineContext pipelineContext, System.Data.Services.DataServiceOperationContext operationContext)
		{
			base.ProcessedChangeset(pipelineContext, operationContext);
			Debug.WriteLine("ProcessedChangeset");
		}

		public override void ProcessedRequest(IPipelineContext pipelineContext, System.Data.Services.DataServiceOperationContext operationContext)
		{
			base.ProcessedRequest(pipelineContext, operationContext);
			Debug.WriteLine("ProcessedRequest");
		}

		public override void ProcessingChangeset(IPipelineContext pipelineContext, System.Data.Services.DataServiceOperationContext operationContext)
		{
			base.ProcessingChangeset(pipelineContext, operationContext);
			Debug.WriteLine("ProcessingChangeset");
		}

		public override void ProcessingRequest(IPipelineContext pipelineContext, System.Data.Services.DataServiceOperationContext operationContext)
		{
			base.ProcessingRequest(pipelineContext, operationContext);
			Debug.WriteLine("ProcessingRequest");
		}

		public override void StartProcessingRequest(IPipelineContext pipelineContext, System.Data.Services.ProcessRequestArgs args)
		{
			base.StartProcessingRequest(pipelineContext, args);
			Debug.WriteLine("StartProcessingRequest");
		}
	}
}